package sdk

import (
	"github.com/astaxie/beego"
	"net/http"
)

func NewClient(appId int64, secretId, secretKey, action, region, version, dsid string) *Client {

	hostUrl := beego.AppConfig.String("ttsSrv")
	client := &Client{
		appId:      appId,
		secretId:   secretId,
		secretKey:  secretKey,
		action:     action,
		region:     region,
		version:    version,
		serverUrl:  hostUrl,
		httpClient: &http.Client{},
		dsid:       dsid,
	}

	return client
}
